<?php
	session_start();
	require 'function.php';
	define('ROOT',__DIR__);		//根目录
	define('CACHE_LONG',ROOT.'/Runtime/Long');

/*
	自动加载
*/
	function loadprint( $class ) {
		$root = str_replace('\\','/',__DIR__);
		$dir_array = array(
			$root . '/Control/',
			$root . '/Class/'
		);
		foreach($dir_array as $v){	
			$file = $v . $class . '.class.php';
			if (is_file($file)) {
				 require_once($file);
			}
		}
	}
	spl_autoload_register( 'loadprint' );



